package com.linsir.auth.modules.oauth.controller;

import com.linsir.auth.modules.test.entity.Staff;
import com.linsir.auth.vo.StaffVO;
import com.linsir.core.controller.BaseCrudRestController;
import com.linsir.core.vo.jsonResults.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : StaffController
 * @Description :
 * @Author : Linsir
 * @Date: 2023-12-23 02:11
 */

@RestController
@RequestMapping("/staff")
public class StaffController extends BaseCrudRestController<Staff> {

    @RequestMapping("get")
    public JsonResult<StaffVO> get() throws Exception {
        return getViewObject(1, StaffVO.class);
    }
}
